import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JTextField;

public class TestUpdateUI {
	public boolean bb;
	public static void main(String[] args) throws NoSuchFieldException, SecurityException {
		Object c = false;
		System.out.println(TestUpdateUI.class.getDeclaredField("bb").getType().equals(boolean.class));
		JFrame jf = new JFrame();
		jf.setVisible(true);
		final JDialog f = new JDialog(jf);
		JTextField tf = new JTextField("xx");
		f.add(tf);
		f.setBounds(200, 200, 200, 200);
		f.setFocusableWindowState(false);
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
//		f.setVisible(true);
		f.setFocusableWindowState(true);
		f.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
	}

}